﻿using System;
using System.Linq;
using System.Text;
using System.Collections.Generic;

using WoChu.CF.Base;
using WoChu.CF.Version.Model;

namespace WoChu.CF.Version.IFace
{
    [ServiceName(Name = "VersionService")]
    public interface IUpdateVersion
    {
        [Mapping(MethodUrl = "IUpdateVersion/CheckVersion?majorId={0}&subId={1}&buildNo={2}")]
        bool CheckVersion(int majorId, int subId, int buildNo);

        [Mapping(MethodUrl = "IUpdateVersion/GetLastVersion?majorId={0}&subId={1}&buildNo={2}")]
        List<VersionInfo> GetLastVersion(int majorId, int subId, int buildNo);

        [Mapping(MethodUrl = "IUpdateVersion/GetLastVersionForCode?versionCode={0}")]
        VersionInfo GetLastVersionForCode(string versionCode);
    }
}
